<?php

class Application_Model_DbTable_Adresse extends Zend_Db_Table_Abstract {

    protected $_name = 'adresse';
    protected $_sequence = true;

    public function addAdresse($adresse) {
        $id_adresse = $this->insert($adresse);
        return $id_adresse;
    }

    public function editAdresse($adresse, $id_adresse) {
        //echo "<h2>editAdresse</h2>";
        //var_dump($id_adresse);
        //exit;

        $this->update($adresse, 'id_adresse =' . (int) $id_adresse);
    }

}
